#
# MAINTAINER        cky
# DOCKER-VERSION    1.12.0
#
# Dockerizing MySQL: Dockerfile for building MySQL images
#
FROM ckydocker/centos:7.2
MAINTAINER cky

ENV DATA_DIR /var/lib/mysql

# Install MySQL
RUN yum install -y mariadb mariadb-server && \
    yum clean all

ADD mysqld_charset.cnf /etc/my.cnf.d/

COPY scripts /scripts
RUN chmod +x /scripts/start

EXPOSE 3306

VOLUME ["/var/lib/mysql"]

ENTRYPOINT ["/scripts/start"]
